﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace HROReporting.UI.Web.MVC
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "Vergader",
                url: "Vergader/VergaderDetails/{locatie}/{code}",
                defaults: new { controller = "Vergader", action = "VergaderDetails", locatie = "", code = "" }
            );

            routes.MapRoute(
                name: "Reserveer",
                url: "Vergader/VergaderReserveer/{locatie}/{code}",
                defaults: new { controller = "Vergader", action = "VergaderReserveer", locatie = "", code = "" }
            );

            routes.MapRoute(
                name: "Create",
                url: "Vergader/Create/{locatie}/{code}",
                defaults: new { controller = "Vergader", action = "Create", locatie = "", code = "" }
            );



            routes.MapRoute(
                name: "Incheck",
                url: "{controller}/{action}/{code}/{nfcdevicserial}",
                defaults: new { controller = "Incheck" }
            );


        }
    }
}